package cn.legend.travel.basic.info.dao.persist.mapper;

import cn.legend.travel.basic.info.pojo.entity.BlackUser;
import cn.legend.travel.basic.info.pojo.entity.User;
import cn.legend.travel.basic.info.pojo.vo.BlackListVO;
import cn.legend.travel.basic.info.pojo.vo.UserInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {
    //根据Id查询用户信息
    UserInfoVO selectUserInfoById(Long id);

    //根据nickname查询用户
    List<BlackListVO> selectUserInfoByNickname(String nickname);

    int insertBlack(List<BlackUser> blackUser);

}
